package com.cxxx.guns.modular.backend.dao;

import com.cxxx.guns.modular.backend.model.Announcement;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 通知表 Mapper 接口
 * </p>
 *
 * @author cczhang
 * @since 2018-09-05
 */
public interface AnnouncementMapper extends BaseMapper<Announcement> {
    /*主页初始化查询*/
    public List<Announcement> getListIndex(int status);
    /*查询上一条记录*/
    public Announcement selectPrevious(Date date);
    /**查询下一条记录*/
    public Announcement selectNext(Date date);

}
